/*
 * Android Runner is a multiplayer GPS game fully written by Xurxo Mendez Perez
 * 
 * Copyright (C) 2009 Xurxo Mendez Perez
 *   
 * This file is part of Android Runner.
 * 
 * Android Runner is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Android Runner is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Android Runner.  If not, see <http://www.gnu.org/licenses/>.
 */

package es.sonxurxo.gpsgame.client.model.service.to;

import java.io.Serializable;

import com.google.android.maps.GeoPoint;

/**
 * 
 * @author "Xurxo Mendez Perez"
 *
 */
public class Player implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2526275159059005102L;
	private String login;
	private String email;
	private boolean showPersonalInfo = false;
	private String phone;
	private String name;
	private String surname;
	private String country;
	private int points = 0;
	private int numberOfItems = 0;
	private int totalPoints = 0;
	private int maxPoints = 0;
	private int bestRank = 0;
	private int imageId = -1;
	private long gameId = -1;
	private GeoPoint location = null;

	public Player() {
	}

	public Player(String login, String email,
			boolean showPersonalInfo, String phone, String name,
			String surname, String country, int points, int numberOfItems,
			int totalPoints, int maxPoints, int bestRank, long gameId,
			int imageId, GeoPoint location) {
		super();
		this.login = login;
		this.email = email;
		this.showPersonalInfo = showPersonalInfo;
		this.phone = phone;
		this.name = name;
		this.surname = surname;
		this.country = country;
		this.points = points;
		this.numberOfItems = numberOfItems;
		this.totalPoints = totalPoints;
		this.maxPoints = maxPoints;
		this.bestRank = bestRank;
		this.gameId = gameId;
		this.imageId = imageId;
		this.location = location;
	}

	public Player(String login, String email, boolean showPersonalInfo, 
			String phone, String name, String surname, String country, 
			int imageId) {
		super();
		this.login = login;
		this.email = email;
		this.showPersonalInfo = showPersonalInfo;
		this.phone = phone;
		this.name = name;
		this.surname = surname;
		this.country = country;
		this.points = 0;
		this.numberOfItems = 0;
		this.totalPoints = 0;
		this.maxPoints = 0;
		this.bestRank = 0;
		this.gameId = -1;
		this.imageId = imageId;
		this.location = null;
	}
	
	public long getGameId() {
		return gameId;
	}

	public void setGameId(long gameId) {
		this.gameId = gameId;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public int getNumberOfItems() {
		return numberOfItems;
	}

	public void setNumberOfItems(int numberOfItems) {
		this.numberOfItems = numberOfItems;
	}

	public boolean isShowPersonalInfo() {
		return showPersonalInfo;
	}

	public boolean isShowPersonaleInfo() {
		return showPersonalInfo;
	}

	public void setShowPersonalInfo(boolean showPersonalInfo) {
		this.showPersonalInfo = showPersonalInfo;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getImageId() {
		return imageId;
	}

	public void setImageId(int imageId) {
		this.imageId = imageId;
	}

	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getLogin() {
		return this.login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return this.surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public int getPoints() {
		return this.points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public int getTotalPoints() {
		return this.totalPoints;
	}

	public void setTotalPoints(int totalPoints) {
		this.totalPoints = totalPoints;
	}

	public int getMaxPoints() {
		return this.maxPoints;
	}

	public void setMaxPoints(int maxPoints) {
		this.maxPoints = maxPoints;
	}

	public int getBestRank() {
		return this.bestRank;
	}

	public void setBestRank(int bestRank) {
		this.bestRank = bestRank;
	}

	public GeoPoint getLocation() {
		return this.location;
	}

	public void setLocation(GeoPoint location) {
		this.location = location;
	}
}
